package com.frcdi.qms.system.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子签名对象 sys_digital_sign
 *
 * @author cell
 * @date 2023-10-13
 */
@ApiModel(value = "电子签名对象")
public class SysDigitalSign extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long signId;

    /** 签名人 */
    @Excel(name = "签名人")
    private String userName;

    /** 签名相关主数据类型 */
    @Excel(name = "签名相关主数据类型")
    private String changeType;

    /** 签名相关主数据类型数据id */
    @Excel(name = "签名相关主数据类型数据id")
    private Long associatedId;

    /** 签名相关变更申请单编号 */
    @Excel(name = "签名相关变更申请单编号")
    private String changeNo;

    /** 签名时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签名时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signTime;

    /** 签名时选择状态 */
    @Excel(name = "签名时选择状态")
    private String signStatus;

    public void setSignId(Long signId)
    {
        this.signId = signId;
    }

    public Long getSignId()
    {
        return signId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getChangeType() {
        return changeType;
    }

    public void setChangeType(String changeType) {
        this.changeType = changeType;
    }

    public Long getAssociatedId() {
        return associatedId;
    }

    public void setAssociatedId(Long associatedId) {
        this.associatedId = associatedId;
    }

    public void setChangeNo(String changeNo)
    {
        this.changeNo = changeNo;
    }

    public String getChangeNo()
    {
        return changeNo;
    }
    public void setSignTime(Date signTime)
    {
        this.signTime = signTime;
    }

    public Date getSignTime()
    {
        return signTime;
    }
    public void setSignStatus(String signStatus)
    {
        this.signStatus = signStatus;
    }

    public String getSignStatus()
    {
        return signStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("signId", getSignId())
            .append("userName", getUserName())
            .append("masterdataType", getChangeType())
            .append("masterdataId", getAssociatedId())
            .append("changeNo", getChangeNo())
            .append("remark", getRemark())
            .append("signTime", getSignTime())
            .append("signStatus", getSignStatus())
            .toString();
    }
}
